<template>
    <div>
        <h3>当前redis集群数:{{redisInfo.length}}</h3>
        <a-card :title="index+1" v-for="(item,index) in redisInfo" :key="index">
            <a-card-grid>
                <span>redis版本：{{item.redis_version}}</span><br>
                <span>git sha 码：{{item.redis_git_sha1}}</span><br>
                <span>redis git dirty 码：{{item.redis_git_dirty}}</span><br>
                <span>宿主操作系统：{{item.os}}</span><br>
                <span>宿主操作系统架构：{{item.arch_bits}}</span><br>
                <span>事件处理机制：{{item.multiplexing_api}}</span><br>
                <span>gcc版本号：{{item.multiplexing_api}}</span><br>
            </a-card-grid>
            <a-card-grid>
                <span>服务器进程id：{{item.process_id}}</span><br>
                <span> Redis 服务器的随机标识符：{{item.run_id}}</span><br>
                <span>TCP/IP 监听端口：{{item.tcp_port}}</span><br>
                <span>自 Redis 服务器启动以来，经过的秒数：{{item.uptime_in_seconds}}</span><br>
                <span>自 Redis 服务器启动以来，经过的天数：{{item.uptime_in_days}}</span><br>
                <span>以分钟为单位进行自增的时钟，用于 LRU 管理：{{item.lru_clock}}</span><br>
                <span>已连接客户端的数量：{{item.connected_clients}}</span><br>
            </a-card-grid>
            <a-card-grid>
                <span>当前连接的客户端当中，最长的输出列表：{{item.client_longest_output_list}}</span><br>
                <span> 当前连接的客户端当中，最大输入缓存：{{item.client_longest_input_buf}}</span><br>
                <span>正在等待阻塞命令的客户端的数量：{{item.blocked_clients}}</span><br>
                <span>由 Redis 分配器分配的内存总量：{{item.used_memory}}</span><br>
                <span>以人类可读的格式返回 Redis 分配的内存总量：{{item.used_memory_human}}</span><br>
                <span>Redis 的内存消耗峰值：{{item.used_memory_peak}}</span><br>
                <span>Lua 引擎所使用的内存大小：{{item.used_memory_lua}}</span><br>
            </a-card-grid>
        </a-card>
    </div>
</template>

<script>
    const info = [
        {
            aof_pending_bio_fsync: "0 ",
            "aof_buffer_length": "0 ",
            "aof_rewrite_scheduled": "0 ",
            "number_of_cached_scripts": "0 ",
            "mem_clients_slaves": "16922 ",
            "keyspace_misses": "0 ",
            "mem_allocator": "jemalloc-5.1.0 ",
            "multiplexing_api": "epoll ",
            "aof_last_write_status": "ok ",
            "used_memory_peak_perc": "100.83% ",
            "run_id": "b3f7d820c715bbd20126116824bff3f68eb41bfd ",
            "uptime_in_seconds": "30793 ",
            "maxmemory": "0 ",
            "active_defrag_hits": "0 ",
            "aof_base_size": "0 ",
            "atomicvar_api": "atomic-builtin ",
            "total_system_memory_human": "11.09G ",
            "gcc_version": "6.3.0 ",
            "second_repl_offset": "-1 ",
            "arch_bits": "64 ",
            "master_repl_offset": "42896 ",
            "instantaneous_output_kbps": "0.00 ",
            "total_commands_processed": "30655 ",
            "repl_backlog_size": "1048576 ",
            "sync_full": "1 ",
            "sync_partial_err": "1 ",
            "aof_last_cow_size": "0 ",
            "configured_hz": "10 ",
            "used_memory_startup": "1449328 ",
            "mem_clients_normal": "66616 ",
            "used_cpu_user": "49.461322 ",
            "aof_enabled": "1 ",
            "redis_mode": "cluster ",
            "rdb_changes_since_last_save": "0 ",
            "used_memory_lua": "37888 ",
            "redis_build_id": "25863b324953ad1a ",
            "connected_slaves": "1 ",
            "expired_keys": "0 ",
            "used_memory": "2667992 ",
            "active_defrag_misses": "0 ",
            "active_defrag_key_misses": "0 ",
            "used_memory_rss": "5222400 ",
            "rdb_last_bgsave_status": "ok ",
            "process_id": "41 ",
            "rejected_connections": "0 ",
            "master_replid": "8accb4781f8b856e0b87995bf0aa6ec13c1f7433 ",
            "used_memory_rss_human": "4.98M ",
            "used_memory_scripts": "0 ",
            "rdb_bgsave_in_progress": "0 ",
            "rdb_last_cow_size": "270336 ",
            "cluster_enabled": "1 ",
            "tcp_port": "7000 ",
            "os": "Linux 4.15.0-46-generic x86_64 ",
            "mem_replication_backlog": "1048576 ",
            "aof_current_rewrite_time_sec": "-1 ",
            "allocator_rss_ratio": "1.91 ",
            "used_memory_overhead": "2581442 ",
            "repl_backlog_histlen": "42896 ",
            "slave_expires_tracked_keys": "0 ",
            "used_cpu_sys": "80.287663 ",
            "role": "master ",
            "used_memory_dataset_perc": "7.10% ",
            "expired_stale_perc": "0.00 ",
            "allocator_frag_ratio": "1.07 ",
            "client_recent_max_input_buffer": "2 ",
            "aof_current_size": "0 ",
            "aof_last_bgrewrite_status": "ok ",
            "used_memory_peak_human": "2.54M ",
            "hz": "10 ",
            "used_memory_human": "2.54M ",
            "aof_pending_rewrite": "0 ",
            "maxmemory_policy": "noeviction ",
            "rss_overhead_ratio": "0.96 ",
            "mem_fragmentation_ratio": "2.00 ",
            "rdb_last_bgsave_time_sec": "1 ",
            "allocator_allocated": "2655736 ",
            "used_memory_dataset": "86550 ",
            "blocked_clients": "0 ",
            "used_cpu_sys_children": "0.003041 ",
            "repl_backlog_active": "1 ",
            "used_cpu_user_children": "0.000000 ",
            "sync_partial_ok": "0 ",
            "aof_rewrite_in_progress": "0 ",
            "redis_git_sha1": "00000000 ",
            "rdb_current_bgsave_time_sec": "-1 ",
            "active_defrag_running": "0 ",
            "aof_delayed_fsync": "0 ",
            "aof_last_rewrite_time_sec": "-1 ",
            "master_replid2": "0000000000000000000000000000000000000000 ",
            "config_file": "/redis-conf/7000/redis.conf ",
            "lazyfree_pending_objects": "0 ",
            "used_memory_scripts_human": "0B ",
            "loading": "0 ",
            "allocator_rss_bytes": "2584576 ",
            "pubsub_channels": "1 ",
            "used_memory_lua_human": "37.00K ",
            "active_defrag_key_hits": "0 ",
            "allocator_frag_bytes": "199176 ",
            "migrate_cached_sockets": "0 ",
            "redis_git_dirty": "0 ",
            "total_system_memory": "11910696960 ",
            "mem_aof_buffer": "0 ",
            "rss_overhead_bytes": "-217088 ",
            "client_recent_max_output_buffer": "0 ",
            "slave0": "ip=172.17.0.2,port=7004,state=online,offset=42896,lag=0 ",
            "connected_clients": "2 ",
            "mem_fragmentation_bytes": "2617296 ",
            "lru_clock": "12216634 ",
            "aof_rewrite_buffer_length": "0 ",
            "pubsub_patterns": "0 ",
            "expired_time_cap_reached_count": "0 ",
            "repl_backlog_first_byte_offset": "1 ",
            "total_net_output_bytes": "57692 ",
            "executable": "/redis/src/redis-server ",
            "evicted_keys": "0 ",
            "total_connections_received": "5 ",
            "allocator_active": "2854912 ",
            "mem_not_counted_for_evict": "0 ",
            "redis_version": "5.0.4 ",
            "total_net_input_bytes": "1210332 ",
            "latest_fork_usec": "533 ",
            "maxmemory_human": "0B ",
            "used_memory_peak": "2667992 ",
            "allocator_resident": "5439488 ",
            "keyspace_hits": "0 ",
            "uptime_in_days": "0 ",
            "instantaneous_input_kbps": "0.05 ",
            "instantaneous_ops_per_sec": "1 ",
            "rdb_last_save_time": "1555689720 "
        },
        {
            "aof_pending_bio_fsync": "0 ",
            "aof_buffer_length": "0 ",
            "aof_rewrite_scheduled": "0 ",
            "number_of_cached_scripts": "0 ",
            "mem_clients_slaves": "16922 ",
            "keyspace_misses": "0 ",
            "mem_allocator": "jemalloc-5.1.0 ",
            "multiplexing_api": "epoll ",
            "aof_last_write_status": "ok ",
            "used_memory_peak_perc": "100.04% ",
            "run_id": "86de8dfcdc876b5635ae271ab9b7b708f2f7e1af ",
            "uptime_in_seconds": "30793 ",
            "maxmemory": "0 ",
            "active_defrag_hits": "0 ",
            "aof_base_size": "0 ",
            "atomicvar_api": "atomic-builtin ",
            "total_system_memory_human": "11.09G ",
            "gcc_version": "6.3.0 ",
            "second_repl_offset": "-1 ",
            "arch_bits": "64 ",
            "master_repl_offset": "42896 ",
            "instantaneous_output_kbps": "0.00 ",
            "total_commands_processed": "30649 ",
            "repl_backlog_size": "1048576 ",
            "sync_full": "1 ",
            "sync_partial_err": "1 ",
            "aof_last_cow_size": "0 ",
            "configured_hz": "10 ",
            "used_memory_startup": "1449328 ",
            "mem_clients_normal": "49694 ",
            "used_cpu_user": "48.980068 ",
            "aof_enabled": "1 ",
            "redis_mode": "cluster ",
            "rdb_changes_since_last_save": "0 ",
            "used_memory_lua": "37888 ",
            "redis_build_id": "25863b324953ad1a ",
            "connected_slaves": "1 ",
            "expired_keys": "0 ",
            "used_memory": "2649952 ",
            "active_defrag_misses": "0 ",
            "active_defrag_key_misses": "0 ",
            "used_memory_rss": "5263360 ",
            "rdb_last_bgsave_status": "ok ",
            "process_id": "43 ",
            "rejected_connections": "0 ",
            "master_replid": "e10327f3af738a8308e76da0039e04f0fd2dc909 ",
            "used_memory_rss_human": "5.02M ",
            "used_memory_scripts": "0 ",
            "rdb_bgsave_in_progress": "0 ",
            "rdb_last_cow_size": "270336 ",
            "cluster_enabled": "1 ",
            "tcp_port": "7001 ",
            "os": "Linux 4.15.0-46-generic x86_64 ",
            "mem_replication_backlog": "1048576 ",
            "aof_current_rewrite_time_sec": "-1 ",
            "allocator_rss_ratio": "1.88 ",
            "used_memory_overhead": "2564520 ",
            "repl_backlog_histlen": "42896 ",
            "slave_expires_tracked_keys": "0 ",
            "used_cpu_sys": "80.861094 ",
            "role": "master ",
            "used_memory_dataset_perc": "7.12% ",
            "expired_stale_perc": "0.00 ",
            "allocator_frag_ratio": "1.08 ",
            "client_recent_max_input_buffer": "2 ",
            "aof_current_size": "0 ",
            "aof_last_bgrewrite_status": "ok ",
            "used_memory_peak_human": "2.53M ",
            "hz": "10 ",
            "used_memory_human": "2.53M ",
            "aof_pending_rewrite": "0 ",
            "maxmemory_policy": "noeviction ",
            "rss_overhead_ratio": "0.95 ",
            "mem_fragmentation_ratio": "2.03 ",
            "rdb_last_bgsave_time_sec": "0 ",
            "allocator_allocated": "2720016 ",
            "used_memory_dataset": "85432 ",
            "blocked_clients": "0 ",
            "used_cpu_sys_children": "0.000000 ",
            "repl_backlog_active": "1 ",
            "used_cpu_user_children": "0.002968 ",
            "sync_partial_ok": "0 ",
            "aof_rewrite_in_progress": "0 ",
            "redis_git_sha1": "00000000 ",
            "rdb_current_bgsave_time_sec": "-1 ",
            "active_defrag_running": "0 ",
            "aof_delayed_fsync": "0 ",
            "aof_last_rewrite_time_sec": "-1 ",
            "master_replid2": "0000000000000000000000000000000000000000 ",
            "config_file": "/redis-conf/7001/redis.conf ",
            "lazyfree_pending_objects": "0 ",
            "used_memory_scripts_human": "0B ",
            "loading": "0 ",
            "allocator_rss_bytes": "2580480 ",
            "pubsub_channels": "0 ",
            "used_memory_lua_human": "37.00K ",
            "active_defrag_key_hits": "0 ",
            "allocator_frag_bytes": "225008 ",
            "migrate_cached_sockets": "0 ",
            "redis_git_dirty": "0 ",
            "total_system_memory": "11910696960 ",
            "mem_aof_buffer": "0 ",
            "rss_overhead_bytes": "-262144 ",
            "client_recent_max_output_buffer": "0 ",
            "slave0": "ip=172.17.0.2,port=7005,state=online,offset=42896,lag=1 ",
            "connected_clients": "1 ",
            "mem_fragmentation_bytes": "2676312 ",
            "lru_clock": "12216634 ",
            "aof_rewrite_buffer_length": "0 ",
            "pubsub_patterns": "0 ",
            "expired_time_cap_reached_count": "0 ",
            "repl_backlog_first_byte_offset": "1 ",
            "total_net_output_bytes": "55175 ",
            "executable": "/redis/src/redis-server ",
            "evicted_keys": "0 ",
            "total_connections_received": "6 ",
            "allocator_active": "2945024 ",
            "mem_not_counted_for_evict": "0 ",
            "redis_version": "5.0.4 ",
            "total_net_input_bytes": "1212200 ",
            "latest_fork_usec": "356 ",
            "maxmemory_human": "0B ",
            "used_memory_peak": "2649952 ",
            "allocator_resident": "5525504 ",
            "keyspace_hits": "0 ",
            "uptime_in_days": "0 ",
            "instantaneous_input_kbps": "0.02 ",
            "instantaneous_ops_per_sec": "0 ",
            "rdb_last_save_time": "1555689719 "
        },
        {
            "aof_pending_bio_fsync": "0 ",
            "aof_buffer_length": "0 ",
            "aof_rewrite_scheduled": "0 ",
            "number_of_cached_scripts": "0 ",
            "mem_clients_slaves": "16922 ",
            "keyspace_misses": "0 ",
            "mem_allocator": "jemalloc-5.1.0 ",
            "multiplexing_api": "epoll ",
            "aof_last_write_status": "ok ",
            "used_memory_peak_perc": "100.84% ",
            "run_id": "cf4a1bc312581c594e7af7351db1ecac84b4f76f ",
            "uptime_in_seconds": "30793 ",
            "maxmemory": "0 ",
            "active_defrag_hits": "0 ",
            "aof_base_size": "0 ",
            "atomicvar_api": "atomic-builtin ",
            "total_system_memory_human": "11.09G ",
            "gcc_version": "6.3.0 ",
            "second_repl_offset": "-1 ",
            "arch_bits": "64 ",
            "master_repl_offset": "42896 ",
            "instantaneous_output_kbps": "0.00 ",
            "total_commands_processed": "30647 ",
            "repl_backlog_size": "1048576 ",
            "sync_full": "1 ",
            "sync_partial_err": "1 ",
            "aof_last_cow_size": "0 ",
            "configured_hz": "10 ",
            "used_memory_startup": "1449328 ",
            "mem_clients_normal": "49694 ",
            "used_cpu_user": "49.137977 ",
            "aof_enabled": "1 ",
            "redis_mode": "cluster ",
            "rdb_changes_since_last_save": "0 ",
            "used_memory_lua": "37888 ",
            "redis_build_id": "25863b324953ad1a ",
            "connected_slaves": "1 ",
            "expired_keys": "0 ",
            "used_memory": "2646880 ",
            "active_defrag_misses": "0 ",
            "active_defrag_key_misses": "0 ",
            "used_memory_rss": "5185536 ",
            "rdb_last_bgsave_status": "ok ",
            "process_id": "42 ",
            "rejected_connections": "0 ",
            "master_replid": "ab03634b7749bf18c46efcef25cbc5638f331356 ",
            "used_memory_rss_human": "4.95M ",
            "used_memory_scripts": "0 ",
            "rdb_bgsave_in_progress": "0 ",
            "rdb_last_cow_size": "434176 ",
            "cluster_enabled": "1 ",
            "tcp_port": "7002 ",
            "os": "Linux 4.15.0-46-generic x86_64 ",
            "mem_replication_backlog": "1048576 ",
            "aof_current_rewrite_time_sec": "-1 ",
            "allocator_rss_ratio": "1.91 ",
            "used_memory_overhead": "2564520 ",
            "repl_backlog_histlen": "42896 ",
            "slave_expires_tracked_keys": "0 ",
            "used_cpu_sys": "80.488389 ",
            "role": "master ",
            "used_memory_dataset_perc": "6.88% ",
            "expired_stale_perc": "0.00 ",
            "allocator_frag_ratio": "1.07 ",
            "client_recent_max_input_buffer": "2 ",
            "aof_current_size": "0 ",
            "aof_last_bgrewrite_status": "ok ",
            "used_memory_peak_human": "2.52M ",
            "hz": "10 ",
            "used_memory_human": "2.52M ",
            "aof_pending_rewrite": "0 ",
            "maxmemory_policy": "noeviction ",
            "rss_overhead_ratio": "0.96 ",
            "mem_fragmentation_ratio": "2.01 ",
            "rdb_last_bgsave_time_sec": "0 ",
            "allocator_allocated": "2633296 ",
            "used_memory_dataset": "82360 ",
            "blocked_clients": "0 ",
            "used_cpu_sys_children": "0.000000 ",
            "repl_backlog_active": "1 ",
            "used_cpu_user_children": "0.003329 ",
            "sync_partial_ok": "0 ",
            "aof_rewrite_in_progress": "0 ",
            "redis_git_sha1": "00000000 ",
            "rdb_current_bgsave_time_sec": "-1 ",
            "active_defrag_running": "0 ",
            "aof_delayed_fsync": "0 ",
            "aof_last_rewrite_time_sec": "-1 ",
            "master_replid2": "0000000000000000000000000000000000000000 ",
            "config_file": "/redis-conf/7002/redis.conf ",
            "lazyfree_pending_objects": "0 ",
            "used_memory_scripts_human": "0B ",
            "loading": "0 ",
            "allocator_rss_bytes": "2564096 ",
            "pubsub_channels": "0 ",
            "used_memory_lua_human": "37.00K ",
            "active_defrag_key_hits": "0 ",
            "allocator_frag_bytes": "184752 ",
            "migrate_cached_sockets": "0 ",
            "redis_git_dirty": "0 ",
            "total_system_memory": "11910696960 ",
            "mem_aof_buffer": "0 ",
            "rss_overhead_bytes": "-196608 ",
            "client_recent_max_output_buffer": "0 ",
            "slave0": "ip=172.17.0.2,port=7003,state=online,offset=42896,lag=1 ",
            "connected_clients": "1 ",
            "mem_fragmentation_bytes": "2601560 ",
            "lru_clock": "12216634 ",
            "aof_rewrite_buffer_length": "0 ",
            "pubsub_patterns": "0 ",
            "expired_time_cap_reached_count": "0 ",
            "repl_backlog_first_byte_offset": "1 ",
            "total_net_output_bytes": "54143 ",
            "executable": "/redis/src/redis-server ",
            "evicted_keys": "0 ",
            "total_connections_received": "4 ",
            "allocator_active": "2818048 ",
            "mem_not_counted_for_evict": "0 ",
            "redis_version": "5.0.4 ",
            "total_net_input_bytes": "1216672 ",
            "latest_fork_usec": "583 ",
            "maxmemory_human": "0B ",
            "used_memory_peak": "2646880 ",
            "allocator_resident": "5382144 ",
            "keyspace_hits": "0 ",
            "uptime_in_days": "0 ",
            "instantaneous_input_kbps": "0.05 ",
            "instantaneous_ops_per_sec": "1 ",
            "rdb_last_save_time": "1555689719 "
        },
        {
            "aof_pending_bio_fsync": "0 ",
            "aof_buffer_length": "0 ",
            "aof_rewrite_scheduled": "0 ",
            "number_of_cached_scripts": "0 ",
            "mem_clients_slaves": "0 ",
            "keyspace_misses": "0 ",
            "mem_allocator": "jemalloc-5.1.0 ",
            "multiplexing_api": "epoll ",
            "aof_last_write_status": "ok ",
            "used_memory_peak_perc": "100.84% ",
            "run_id": "e8f188a3ca5987ff05f6c2aa4b8f52fd26b68065 ",
            "uptime_in_seconds": "30793 ",
            "maxmemory": "0 ",
            "active_defrag_hits": "0 ",
            "aof_base_size": "92 ",
            "atomicvar_api": "atomic-builtin ",
            "total_system_memory_human": "11.09G ",
            "gcc_version": "6.3.0 ",
            "second_repl_offset": "-1 ",
            "arch_bits": "64 ",
            "master_repl_offset": "42896 ",
            "instantaneous_output_kbps": "0.05 ",
            "total_commands_processed": "3076 ",
            "repl_backlog_size": "1048576 ",
            "sync_full": "0 ",
            "master_last_io_seconds_ago": "9 ",
            "sync_partial_err": "0 ",
            "aof_last_cow_size": "303104 ",
            "configured_hz": "10 ",
            "master_host": "172.17.0.2 ",
            "used_memory_startup": "1450352 ",
            "mem_clients_normal": "66616 ",
            "used_cpu_user": "59.709277 ",
            "aof_enabled": "1 ",
            "redis_mode": "cluster ",
            "rdb_changes_since_last_save": "0 ",
            "used_memory_lua": "37888 ",
            "redis_build_id": "25863b324953ad1a ",
            "connected_slaves": "0 ",
            "expired_keys": "0 ",
            "used_memory": "2647904 ",
            "active_defrag_misses": "0 ",
            "active_defrag_key_misses": "0 ",
            "used_memory_rss": "5271552 ",
            "slave_read_only": "1 ",
            "rdb_last_bgsave_status": "ok ",
            "process_id": "39 ",
            "rejected_connections": "0 ",
            "master_replid": "ab03634b7749bf18c46efcef25cbc5638f331356 ",
            "used_memory_rss_human": "5.03M ",
            "master_sync_in_progress": "0 ",
            "used_memory_scripts": "0 ",
            "rdb_bgsave_in_progress": "0 ",
            "rdb_last_cow_size": "0 ",
            "cluster_enabled": "1 ",
            "tcp_port": "7003 ",
            "os": "Linux 4.15.0-46-generic x86_64 ",
            "mem_replication_backlog": "1048576 ",
            "aof_current_rewrite_time_sec": "-1 ",
            "allocator_rss_ratio": "1.91 ",
            "used_memory_overhead": "2565544 ",
            "repl_backlog_histlen": "42896 ",
            "slave_expires_tracked_keys": "0 ",
            "used_cpu_sys": "79.283608 ",
            "role": "slave ",
            "used_memory_dataset_perc": "6.88% ",
            "expired_stale_perc": "0.00 ",
            "allocator_frag_ratio": "1.07 ",
            "client_recent_max_input_buffer": "2 ",
            "aof_current_size": "92 ",
            "aof_last_bgrewrite_status": "ok ",
            "used_memory_peak_human": "2.53M ",
            "hz": "10 ",
            "used_memory_human": "2.53M ",
            "aof_pending_rewrite": "0 ",
            "maxmemory_policy": "noeviction ",
            "rss_overhead_ratio": "0.95 ",
            "mem_fragmentation_ratio": "2.04 ",
            "rdb_last_bgsave_time_sec": "-1 ",
            "allocator_allocated": "2700136 ",
            "used_memory_dataset": "82360 ",
            "blocked_clients": "0 ",
            "used_cpu_sys_children": "0.003850 ",
            "repl_backlog_active": "1 ",
            "master_port": "7002 ",
            "used_cpu_user_children": "0.000000 ",
            "sync_partial_ok": "0 ",
            "aof_rewrite_in_progress": "0 ",
            "redis_git_sha1": "00000000 ",
            "rdb_current_bgsave_time_sec": "-1 ",
            "active_defrag_running": "0 ",
            "aof_delayed_fsync": "0 ",
            "aof_last_rewrite_time_sec": "1 ",
            "master_replid2": "0000000000000000000000000000000000000000 ",
            "config_file": "/redis-conf/7003/redis.conf ",
            "lazyfree_pending_objects": "0 ",
            "used_memory_scripts_human": "0B ",
            "loading": "0 ",
            "slave_priority": "100 ",
            "master_link_status": "up ",
            "allocator_rss_bytes": "2625536 ",
            "pubsub_channels": "0 ",
            "used_memory_lua_human": "37.00K ",
            "active_defrag_key_hits": "0 ",
            "slave_repl_offset": "42896 ",
            "allocator_frag_bytes": "195736 ",
            "migrate_cached_sockets": "0 ",
            "redis_git_dirty": "0 ",
            "total_system_memory": "11910696960 ",
            "mem_aof_buffer": "0 ",
            "rss_overhead_bytes": "-249856 ",
            "client_recent_max_output_buffer": "0 ",
            "connected_clients": "2 ",
            "mem_fragmentation_bytes": "2686552 ",
            "lru_clock": "12216634 ",
            "aof_rewrite_buffer_length": "0 ",
            "pubsub_patterns": "0 ",
            "expired_time_cap_reached_count": "0 ",
            "repl_backlog_first_byte_offset": "1 ",
            "total_net_output_bytes": "1165928 ",
            "executable": "/redis/src/redis-server ",
            "evicted_keys": "0 ",
            "total_connections_received": "3 ",
            "allocator_active": "2895872 ",
            "mem_not_counted_for_evict": "0 ",
            "redis_version": "5.0.4 ",
            "total_net_input_bytes": "43539 ",
            "latest_fork_usec": "631 ",
            "maxmemory_human": "0B ",
            "used_memory_peak": "2647904 ",
            "allocator_resident": "5521408 ",
            "keyspace_hits": "0 ",
            "uptime_in_days": "0 ",
            "instantaneous_input_kbps": "0.00 ",
            "instantaneous_ops_per_sec": "0 ",
            "rdb_last_save_time": "1555689713 "
        },
        {
            "aof_pending_bio_fsync": "0 ",
            "aof_buffer_length": "0 ",
            "aof_rewrite_scheduled": "0 ",
            "number_of_cached_scripts": "0 ",
            "mem_clients_slaves": "0 ",
            "keyspace_misses": "0 ",
            "mem_allocator": "jemalloc-5.1.0 ",
            "multiplexing_api": "epoll ",
            "aof_last_write_status": "ok ",
            "used_memory_peak_perc": "100.84% ",
            "run_id": "806a671f68244697a805a1f5660d94a38ad1f7b7 ",
            "uptime_in_seconds": "30793 ",
            "maxmemory": "0 ",
            "active_defrag_hits": "0 ",
            "aof_base_size": "92 ",
            "atomicvar_api": "atomic-builtin ",
            "total_system_memory_human": "11.09G ",
            "gcc_version": "6.3.0 ",
            "second_repl_offset": "-1 ",
            "arch_bits": "64 ",
            "master_repl_offset": "42896 ",
            "instantaneous_output_kbps": "0.05 ",
            "total_commands_processed": "3075 ",
            "repl_backlog_size": "1048576 ",
            "sync_full": "0 ",
            "master_last_io_seconds_ago": "9 ",
            "sync_partial_err": "0 ",
            "aof_last_cow_size": "303104 ",
            "configured_hz": "10 ",
            "master_host": "172.17.0.2 ",
            "used_memory_startup": "1449328 ",
            "mem_clients_normal": "66616 ",
            "used_cpu_user": "59.734737 ",
            "aof_enabled": "1 ",
            "redis_mode": "cluster ",
            "rdb_changes_since_last_save": "0 ",
            "used_memory_lua": "37888 ",
            "redis_build_id": "25863b324953ad1a ",
            "connected_slaves": "0 ",
            "expired_keys": "0 ",
            "used_memory": "2649952 ",
            "active_defrag_misses": "0 ",
            "active_defrag_key_misses": "0 ",
            "used_memory_rss": "5156864 ",
            "slave_read_only": "1 ",
            "rdb_last_bgsave_status": "ok ",
            "process_id": "38 ",
            "rejected_connections": "0 ",
            "master_replid": "8accb4781f8b856e0b87995bf0aa6ec13c1f7433 ",
            "used_memory_rss_human": "4.92M ",
            "master_sync_in_progress": "0 ",
            "used_memory_scripts": "0 ",
            "rdb_bgsave_in_progress": "0 ",
            "rdb_last_cow_size": "0 ",
            "cluster_enabled": "1 ",
            "tcp_port": "7004 ",
            "os": "Linux 4.15.0-46-generic x86_64 ",
            "mem_replication_backlog": "1048576 ",
            "aof_current_rewrite_time_sec": "-1 ",
            "allocator_rss_ratio": "1.90 ",
            "used_memory_overhead": "2564520 ",
            "repl_backlog_histlen": "42896 ",
            "slave_expires_tracked_keys": "0 ",
            "used_cpu_sys": "79.388404 ",
            "role": "slave ",
            "used_memory_dataset_perc": "7.12% ",
            "expired_stale_perc": "0.00 ",
            "allocator_frag_ratio": "1.08 ",
            "client_recent_max_input_buffer": "2 ",
            "aof_current_size": "92 ",
            "aof_last_bgrewrite_status": "ok ",
            "used_memory_peak_human": "2.53M ",
            "hz": "10 ",
            "used_memory_human": "2.53M ",
            "aof_pending_rewrite": "0 ",
            "maxmemory_policy": "noeviction ",
            "rss_overhead_ratio": "0.93 ",
            "mem_fragmentation_ratio": "1.99 ",
            "rdb_last_bgsave_time_sec": "-1 ",
            "allocator_allocated": "2702184 ",
            "used_memory_dataset": "85432 ",
            "blocked_clients": "0 ",
            "used_cpu_sys_children": "0.004282 ",
            "repl_backlog_active": "1 ",
            "master_port": "7000 ",
            "used_cpu_user_children": "0.000000 ",
            "sync_partial_ok": "0 ",
            "aof_rewrite_in_progress": "0 ",
            "redis_git_sha1": "00000000 ",
            "rdb_current_bgsave_time_sec": "-1 ",
            "active_defrag_running": "0 ",
            "aof_delayed_fsync": "0 ",
            "aof_last_rewrite_time_sec": "0 ",
            "master_replid2": "0000000000000000000000000000000000000000 ",
            "config_file": "/redis-conf/7004/redis.conf ",
            "lazyfree_pending_objects": "0 ",
            "used_memory_scripts_human": "0B ",
            "loading": "0 ",
            "slave_priority": "100 ",
            "master_link_status": "up ",
            "allocator_rss_bytes": "2625536 ",
            "pubsub_channels": "0 ",
            "used_memory_lua_human": "37.00K ",
            "active_defrag_key_hits": "0 ",
            "slave_repl_offset": "42896 ",
            "allocator_frag_bytes": "205976 ",
            "migrate_cached_sockets": "0 ",
            "redis_git_dirty": "0 ",
            "total_system_memory": "11910696960 ",
            "mem_aof_buffer": "0 ",
            "rss_overhead_bytes": "-376832 ",
            "client_recent_max_output_buffer": "0 ",
            "connected_clients": "2 ",
            "mem_fragmentation_bytes": "2569816 ",
            "lru_clock": "12216634 ",
            "aof_rewrite_buffer_length": "0 ",
            "pubsub_patterns": "0 ",
            "expired_time_cap_reached_count": "0 ",
            "repl_backlog_first_byte_offset": "1 ",
            "total_net_output_bytes": "1165295 ",
            "executable": "/redis/src/redis-server ",
            "evicted_keys": "0 ",
            "total_connections_received": "3 ",
            "allocator_active": "2908160 ",
            "mem_not_counted_for_evict": "0 ",
            "redis_version": "5.0.4 ",
            "total_net_input_bytes": "43511 ",
            "latest_fork_usec": "423 ",
            "maxmemory_human": "0B ",
            "used_memory_peak": "2649952 ",
            "allocator_resident": "5533696 ",
            "keyspace_hits": "0 ",
            "uptime_in_days": "0 ",
            "instantaneous_input_kbps": "0.00 ",
            "instantaneous_ops_per_sec": "0 ",
            "rdb_last_save_time": "1555689713 "
        },
        {
            "aof_pending_bio_fsync": "0 ",
            "aof_buffer_length": "0 ",
            "aof_rewrite_scheduled": "0 ",
            "number_of_cached_scripts": "0 ",
            "mem_clients_slaves": "0 ",
            "keyspace_misses": "0 ",
            "mem_allocator": "jemalloc-5.1.0 ",
            "multiplexing_api": "epoll ",
            "aof_last_write_status": "ok ",
            "used_memory_peak_perc": "100.84% ",
            "run_id": "6cd93f7405e2acf88bea8809e8fc720a3f5d846e ",
            "uptime_in_seconds": "30793 ",
            "maxmemory": "0 ",
            "active_defrag_hits": "0 ",
            "aof_base_size": "92 ",
            "atomicvar_api": "atomic-builtin ",
            "total_system_memory_human": "11.09G ",
            "gcc_version": "6.3.0 ",
            "second_repl_offset": "-1 ",
            "arch_bits": "64 ",
            "master_repl_offset": "42896 ",
            "instantaneous_output_kbps": "0.02 ",
            "total_commands_processed": "3075 ",
            "repl_backlog_size": "1048576 ",
            "sync_full": "0 ",
            "master_last_io_seconds_ago": "9 ",
            "sync_partial_err": "0 ",
            "aof_last_cow_size": "303104 ",
            "configured_hz": "10 ",
            "master_host": "172.17.0.2 ",
            "used_memory_startup": "1449328 ",
            "mem_clients_normal": "66616 ",
            "used_cpu_user": "59.625413 ",
            "aof_enabled": "1 ",
            "redis_mode": "cluster ",
            "rdb_changes_since_last_save": "0 ",
            "used_memory_lua": "37888 ",
            "redis_build_id": "25863b324953ad1a ",
            "connected_slaves": "0 ",
            "expired_keys": "0 ",
            "used_memory": "2647904 ",
            "active_defrag_misses": "0 ",
            "active_defrag_key_misses": "0 ",
            "used_memory_rss": "5275648 ",
            "slave_read_only": "1 ",
            "rdb_last_bgsave_status": "ok ",
            "process_id": "40 ",
            "rejected_connections": "0 ",
            "master_replid": "e10327f3af738a8308e76da0039e04f0fd2dc909 ",
            "used_memory_rss_human": "5.03M ",
            "master_sync_in_progress": "0 ",
            "used_memory_scripts": "0 ",
            "rdb_bgsave_in_progress": "0 ",
            "rdb_last_cow_size": "0 ",
            "cluster_enabled": "1 ",
            "tcp_port": "7005 ",
            "os": "Linux 4.15.0-46-generic x86_64 ",
            "mem_replication_backlog": "1048576 ",
            "aof_current_rewrite_time_sec": "-1 ",
            "allocator_rss_ratio": "1.91 ",
            "used_memory_overhead": "2564520 ",
            "repl_backlog_histlen": "42896 ",
            "slave_expires_tracked_keys": "0 ",
            "used_cpu_sys": "79.707146 ",
            "role": "slave ",
            "used_memory_dataset_perc": "6.96% ",
            "expired_stale_perc": "0.00 ",
            "allocator_frag_ratio": "1.07 ",
            "client_recent_max_input_buffer": "2 ",
            "aof_current_size": "92 ",
            "aof_last_bgrewrite_status": "ok ",
            "used_memory_peak_human": "2.53M ",
            "hz": "10 ",
            "used_memory_human": "2.53M ",
            "aof_pending_rewrite": "0 ",
            "maxmemory_policy": "noeviction ",
            "rss_overhead_ratio": "0.96 ",
            "mem_fragmentation_ratio": "2.04 ",
            "rdb_last_bgsave_time_sec": "-1 ",
            "allocator_allocated": "2700136 ",
            "used_memory_dataset": "83384 ",
            "blocked_clients": "0 ",
            "used_cpu_sys_children": "0.000000 ",
            "repl_backlog_active": "1 ",
            "master_port": "7001 ",
            "used_cpu_user_children": "0.003786 ",
            "sync_partial_ok": "0 ",
            "aof_rewrite_in_progress": "0 ",
            "redis_git_sha1": "00000000 ",
            "rdb_current_bgsave_time_sec": "-1 ",
            "active_defrag_running": "0 ",
            "aof_delayed_fsync": "0 ",
            "aof_last_rewrite_time_sec": "1 ",
            "master_replid2": "0000000000000000000000000000000000000000 ",
            "config_file": "/redis-conf/7005/redis.conf ",
            "lazyfree_pending_objects": "0 ",
            "used_memory_scripts_human": "0B ",
            "loading": "0 ",
            "slave_priority": "100 ",
            "master_link_status": "up ",
            "allocator_rss_bytes": "2625536 ",
            "pubsub_channels": "0 ",
            "used_memory_lua_human": "37.00K ",
            "active_defrag_key_hits": "0 ",
            "slave_repl_offset": "42896 ",
            "allocator_frag_bytes": "195736 ",
            "migrate_cached_sockets": "0 ",
            "redis_git_dirty": "0 ",
            "total_system_memory": "11910696960 ",
            "mem_aof_buffer": "0 ",
            "rss_overhead_bytes": "-245760 ",
            "client_recent_max_output_buffer": "0 ",
            "connected_clients": "2 ",
            "mem_fragmentation_bytes": "2690648 ",
            "lru_clock": "12216634 ",
            "aof_rewrite_buffer_length": "0 ",
            "pubsub_patterns": "0 ",
            "expired_time_cap_reached_count": "0 ",
            "repl_backlog_first_byte_offset": "1 ",
            "total_net_output_bytes": "1165294 ",
            "executable": "/redis/src/redis-server ",
            "evicted_keys": "0 ",
            "total_connections_received": "3 ",
            "allocator_active": "2895872 ",
            "mem_not_counted_for_evict": "0 ",
            "redis_version": "5.0.4 ",
            "total_net_input_bytes": "43511 ",
            "latest_fork_usec": "620 ",
            "maxmemory_human": "0B ",
            "used_memory_peak": "2647904 ",
            "allocator_resident": "5521408 ",
            "keyspace_hits": "0 ",
            "uptime_in_days": "0 ",
            "instantaneous_input_kbps": "0.00 ",
            "instantaneous_ops_per_sec": "0 ",
            "rdb_last_save_time": "1555689713 "
        }
    ];


    export default {
        name: "Redis",
        data() {
            return {
                redisInfo: info,
            }
        },
        methods: {
            getRedisInfo() {
                this.$api.post('info/getInfo', {}, res => {
                    // eslint-disable-next-line no-console
                    console.log('redis', res);
                    this.redisInfo = res.data;
                })
            }
        },
        mounted() {
            this.getRedisInfo();
        }
    }
</script>

<style scoped>

</style>